package com.jc.repository;

import com.jc.repository.generator.GenerateMybatis;

/**
 * @author wangli
 * @create 2016-06-16 09:40
 * @description 仅供测试使用,
 */

public class GeneratorMybatis {

    public static void main(String[] args) {

//        String configDir= "/Users/jcm002/wangli/code/jc-java-wangli/jc-toytrade-mall/jc-toytrade-repository/src/main/resources/generate";
//        String configDir = "/Users/jcm002/wangli/code/outsource/code-generation-tool/os-repository/src/main/resources/generate";
        String configDir = "D:\\code\\useful\\ssm\\code-generation-tool\\os-repository\\src\\main\\resources\\generate";
        String xmlPath = "hibernate-win10-generator-config.xml";
        GenerateMybatis.generator(configDir, xmlPath);


//        String domainBaseDir = "/Users/jcm002/wangli/code/outsource/code-generation-tool/os-repository/src/main/java/com/jc/domain";
//        String mapperBaseDir = "/Users/jcm002/wangli/code/outsource/code-generation-tool/os-repository/src/main/java/com/jc/mapper";
//        String daoBaseDir = "/Users/jcm002/wangli/code/outsource/code-generation-tool/os-repository/src/main/java/com/jc/dao";
//        String serviceBaseDir = "/Users/jcm002/wangli/code/outsource/code-generation-tool/os-service/src/main/java/com/jc/service";
////
//        ArrayList<String> whiteList = Lists.newArrayList();
////        whiteList.add("attributeDict");
//        GenerateMybatis.generateDaoAndServiceCode(new GenerateBaseDir()
//                .domainBaseDir(domainBaseDir)
//                .mapperBaseDir(mapperBaseDir)
//                .daoBaseDir(daoBaseDir)
//                .serviceBaseDir(serviceBaseDir), new GenerateConfig().isCover(GenerateIsCover.覆盖).mode(GenerateMode.全部生成),whiteList);

    }
}
